/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.sanerzone.smscenter.modules.sms.web.front;

import com.sanerzone.jeebase.common.persistence.Page;
import com.sanerzone.jeebase.common.utils.DateUtils;
import com.sanerzone.jeebase.common.utils.excel.ImportExcel;
import com.sanerzone.jeebase.common.web.BaseController;
import com.sanerzone.jeebase.modules.sys.utils.UserUtils;
import com.sanerzone.smscenter.biz.utils.DateHelper;
import com.sanerzone.smscenter.common.message.Result;
import com.sanerzone.smscenter.modules.sms.entity.FrontSendMessage;
import com.sanerzone.smscenter.modules.sms.entity.SmsReceive;
import com.sanerzone.smscenter.modules.sms.entity.SmsSend;
import com.sanerzone.smscenter.modules.sms.service.SmsReceiveService;
import com.sanerzone.smscenter.modules.sms.service.SmsSendService;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.List;

/**
 * 收信息
 */
@Controller
@RequestMapping(value = "/front/receive")
public class FrontReceiveController extends BaseController {

    @Autowired
    private SmsReceiveService smsReceiveService;

    //用户已发短信列表
    @RequestMapping(value = "index")
    public String sendList(SmsReceive smsReceive, HttpServletRequest request, HttpServletResponse response , Model model) {
        Page<SmsReceive> page = smsReceiveService.findPage(new Page<SmsReceive>(request, response), smsReceive);
        model.addAttribute("page", page);
        return "";
    }
}